//
//  AddBankCardCell.m
//  WBBaseProject
//
//  Created by 吴斌 on 2018/3/23.
//  Copyright © 2018年 吴斌. All rights reserved.
//

#import "AddBankCardCell.h"

@implementation AddBankCardCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)showAddCard
{
    self.titleLb.text = @"添加储蓄卡";
    self.bankCrad.image = WB_ImageName(@"添加银行卡");
    self.cardNumLb.hidden = YES;
    self.checkIV.hidden = YES;
}

- (void)showDefault
{
    //self.titleLb.text = @"工商银行";
    self.titleLb.textColor = [UIColor whiteColor];
    self.iconIV.image = WB_ImageName(@"银联");
    self.iconIV_width.constant = 25.f;
    self.checkIV.hidden = YES;
}

- (void)showChoosed
{
    //self.titleLb.text = @"工商银行";
    self.titleLb.textColor = [UIColor whiteColor];
    self.iconIV.image = WB_ImageName(@"银联");
    self.iconIV_width.constant = 25.f;
    self.checkIV.hidden = NO;
}

- (void)configData:(NSDictionary *)data
{
    self.titleLb.text = data[@"bankName"];
    self.cardNumLb.text = [NSString stringWithFormat:@"**** **** **** %@",data[@"tail"]];
}

@end
